﻿using HomeWorkAug19.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HomeWorkAug19.Controllers
{
    public class HomeController : Controller
    {

        List<Hero> heroes = new List<Hero>(){

              new Hero("Superman", "Kryptonian", "Everything", "DC", "Justice League", "No"),
              new Hero("Batman", "Human", "Intelligence", "DC", "Justice League", "No"),
              new Hero("Iron-Man", "Human", "Intelligence", "Marvel", "Avengers", "No"),
              new Hero("Hulk", "Human", "SuperStrength", "Marvel", "Avengers", "No"),
              new Hero("Thor", "Asgardian", "Everything", "Marvel", "Avengers", "No"),
              new Hero("Flash", "Human", "SuperSpeed", "DC", "Justice League", "No"),
              new Hero("Captain America", "Human", "Superhuman", "Marvel", "Avengers", "No"),
              
           };

        List<Villain> villains = new List<Villain>(){

              new Villain("Magneto", "Mutant", "Magnetism", "Marvel", "Brotherhood", "No"),
              new Villain("Venom", "Human/Alien", "Strength", "Marvel", "None", "No"),
              new Villain("Darkseid", "Alien", "Everything", "DC", "None", "Yes"),
              new Villain("Dr. Doom", "Human", "Intelligence", "Marvel", "None", "Yes"),
              new Villain("Loki", "Asgardian", "Deception", "Marvel", "None", "Yes"),
              new Villain("Deathstroke", "Human", "Martial Arts", "DC", "None", "Yes"),
              new Villain("Red Hulk", "Human", "Everything", "Marvel", "None", "No")

          };
        public ActionResult Test1()
        {
            villains.Add(new Villain("Black Adam", "Human", "Magic", "DC", "None", "Yes"));
            return View(villains);
        }
        public ActionResult Earth()
        {
            heroes.Add(new Hero("Green Lantern", "Human", "WillPower", "DC", "Justice League", "No"));
            return View(heroes);
        }
        public ActionResult Mars()
        {
            return View(villains);
        }
        public ActionResult Battle()  // new view to place both lists
        {
            Bucket bucket = new Bucket();  // defining bucket 
            bucket.heroes = heroes;
            bucket.villains = villains;
            return View(bucket);
        }
    }
}